package com.ruicar.afs.cloud.afscase.channel.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.afscase.channel.condition.CarDealerCondition;
import com.ruicar.afs.cloud.afscase.channel.entity.CommonCarDealer;
import com.ruicar.afs.cloud.afscase.channel.vo.AllCarDealerVo;
import com.ruicar.afs.cloud.common.core.util.IResponse;

import java.util.List;

/**
 * @author: sang jian
 * @date: 2020/5/14 10:55
 * @description:
 */
public interface CarDealerService extends IService<CommonCarDealer> {

    /**
     * 根据合作商账户返回此账户下的车商列表信息
     */
    IResponse getCarDealersByUserId(String userId, String cardealerType, String aSwitch, String channelId, String businessType);

    IPage<AllCarDealerVo> getAllCarDealers(CarDealerCondition condition);

    boolean saveCommonCarDealer(CarDealerCondition condition);

    boolean changeStatus(CarDealerCondition condition);

    /*根据合作商账户返回此账户下的车商列表信息(userids集合)*/
    IResponse getCarDealersByUserIds(List<String> userIds, String cardealerType, String aSwitch, String channelId, String businessType);

}
